package com.mjh.zhujianju;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan(basePackages= {"com.livew.framework.base.dao","com.mjh.zhujianju.dao"})
@ComponentScan(basePackages= {"com.mjh.zhujianju","com.livew"})
@ServletComponentScan
public class ApplicationAdmin  extends SpringBootServletInitializer{

	public static void main(String[] args) {
		System.out.println("==============启动=======================");
		SpringApplication.run(ApplicationAdmin.class, args);
		System.out.println("==============结束=======================");
	}
	
	  @Override
	    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
	        return application.sources(ApplicationAdmin.class);
	    }
}
